0 JBC
↳1 JBC2FIG (⇒)
↳2 JBCTerminationGraph
↳3 FIGtoITRSProof (⇒)
↳4 IDP
↳5 IDPNonInfProof (⇒)
↳6 AND
↳7 IDP
↳8 IDependencyGraphProof (⇔)
↳9 TRUE
↳10 IDP
↳11 IDependencyGraphProof (⇔)
↳12 TRUE
public class IntRTA {
// only wrap a primitive int
private int val;
// count up to the value
// in "limit"
public static void count(
IntRTA orig, IntRTA limit) {
if (orig == null
|| limit == null) {
return;
}
// introduce sharing
IntRTA copy = orig;
while (orig.val < limit.val) {
copy.val++;
}
}
public static void main(String[] args) {
Random.args = args;
IntRTA x = new IntRTA();
x.val = Random.random();
IntRTA y = new IntRTA();
y.val = Random.random();
count(x, y);
}
}
public class Random {
static String[] args;
static int index = 0;
public static int random() {
String string = args[index];
index++;
return string.length();
}
}
Generated 14 rules for P and 2 rules for R.
Combined rules. Obtained 1 rules for P and 0 rules for R.
Filtered ground terms:
880_0_count_FieldAccess(x1, x2, x3, x4, x5) → 880_0_count_FieldAccess(x2, x3, x4, x5)
IntRTA(x1, x2) → IntRTA(x2)
Cond_880_0_count_FieldAccess(x1, x2, x3, x4, x5, x6) → Cond_880_0_count_FieldAccess(x1, x3, x4, x5, x6)
Filtered duplicate args:
880_0_count_FieldAccess(x1, x2, x3, x4) → 880_0_count_FieldAccess(x2, x4)
Cond_880_0_count_FieldAccess(x1, x2, x3, x4, x5) → Cond_880_0_count_FieldAccess(x1, x3, x5)
Combined rules. Obtained 1 rules for P and 0 rules for R.
Finished conversion. Obtained 1 rules for P and 0 rules for R. System has predefined symbols.
!= | ~ | Neq: (Integer, Integer) -> Boolean |
* | ~ | Mul: (Integer, Integer) -> Integer |
>= | ~ | Ge: (Integer, Integer) -> Boolean |
-1 | ~ | UnaryMinus: (Integer) -> Integer |
| | ~ | Bwor: (Integer, Integer) -> Integer |
/ | ~ | Div: (Integer, Integer) -> Integer |
= | ~ | Eq: (Integer, Integer) -> Boolean |
~ | Bwxor: (Integer, Integer) -> Integer | |
|| | ~ | Lor: (Boolean, Boolean) -> Boolean |
! | ~ | Lnot: (Boolean) -> Boolean |
< | ~ | Lt: (Integer, Integer) -> Boolean |
- | ~ | Sub: (Integer, Integer) -> Integer |
<= | ~ | Le: (Integer, Integer) -> Boolean |
> | ~ | Gt: (Integer, Integer) -> Boolean |
~ | ~ | Bwnot: (Integer) -> Integer |
% | ~ | Mod: (Integer, Integer) -> Integer |
& | ~ | Bwand: (Integer, Integer) -> Integer |
+ | ~ | Add: (Integer, Integer) -> Integer |
&& | ~ | Land: (Boolean, Boolean) -> Boolean |
Boolean, Integer
(0) -> (1), if ((x1[0] > x0[0] && x0[0] >= 0 →* TRUE)∧(java.lang.Object(IntRTA(x1[0])) →* java.lang.Object(IntRTA(x1[1])))∧(java.lang.Object(IntRTA(x0[0])) →* java.lang.Object(IntRTA(x0[1]))))
(1) -> (0), if ((java.lang.Object(IntRTA(x1[1])) →* java.lang.Object(IntRTA(x1[0])))∧(java.lang.Object(IntRTA(x0[1] + 1)) →* java.lang.Object(IntRTA(x0[0]))))
(1) (&&(>(x1[0], x0[0]), >=(x0[0], 0))=TRUE∧java.lang.Object(IntRTA(x1[0]))=java.lang.Object(IntRTA(x1[1]))∧java.lang.Object(IntRTA(x0[0]))=java.lang.Object(IntRTA(x0[1])) ⇒ 880_0_COUNT_FIELDACCESS(java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0])))≥NonInfC∧880_0_COUNT_FIELDACCESS(java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0])))≥COND_880_0_COUNT_FIELDACCESS(&&(>(x1[0], x0[0]), >=(x0[0], 0)), java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0])))∧(UIncreasing(COND_880_0_COUNT_FIELDACCESS(&&(>(x1[0], x0[0]), >=(x0[0], 0)), java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0])))), ≥))
(2) (>(x1[0], x0[0])=TRUE∧>=(x0[0], 0)=TRUE ⇒ 880_0_COUNT_FIELDACCESS(java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0])))≥NonInfC∧880_0_COUNT_FIELDACCESS(java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0])))≥COND_880_0_COUNT_FIELDACCESS(&&(>(x1[0], x0[0]), >=(x0[0], 0)), java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0])))∧(UIncreasing(COND_880_0_COUNT_FIELDACCESS(&&(>(x1[0], x0[0]), >=(x0[0], 0)), java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0])))), ≥))
(3) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x0[0] ≥ 0 ⇒ (UIncreasing(COND_880_0_COUNT_FIELDACCESS(&&(>(x1[0], x0[0]), >=(x0[0], 0)), java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0])))), ≥)∧[(-1)bni_10 + (-1)Bound*bni_10] + [(-1)bni_10]x0[0] + [(2)bni_10]x1[0] ≥ 0∧[(-1)bso_11] ≥ 0)
(4) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x0[0] ≥ 0 ⇒ (UIncreasing(COND_880_0_COUNT_FIELDACCESS(&&(>(x1[0], x0[0]), >=(x0[0], 0)), java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0])))), ≥)∧[(-1)bni_10 + (-1)Bound*bni_10] + [(-1)bni_10]x0[0] + [(2)bni_10]x1[0] ≥ 0∧[(-1)bso_11] ≥ 0)
(5) (x1[0] + [-1] + [-1]x0[0] ≥ 0∧x0[0] ≥ 0 ⇒ (UIncreasing(COND_880_0_COUNT_FIELDACCESS(&&(>(x1[0], x0[0]), >=(x0[0], 0)), java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0])))), ≥)∧[(-1)bni_10 + (-1)Bound*bni_10] + [(-1)bni_10]x0[0] + [(2)bni_10]x1[0] ≥ 0∧[(-1)bso_11] ≥ 0)
(6) (x1[0] ≥ 0∧x0[0] ≥ 0 ⇒ (UIncreasing(COND_880_0_COUNT_FIELDACCESS(&&(>(x1[0], x0[0]), >=(x0[0], 0)), java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0])))), ≥)∧[bni_10 + (-1)Bound*bni_10] + [bni_10]x0[0] + [(2)bni_10]x1[0] ≥ 0∧[(-1)bso_11] ≥ 0)
(7) (COND_880_0_COUNT_FIELDACCESS(TRUE, java.lang.Object(IntRTA(x1[1])), java.lang.Object(IntRTA(x0[1])))≥NonInfC∧COND_880_0_COUNT_FIELDACCESS(TRUE, java.lang.Object(IntRTA(x1[1])), java.lang.Object(IntRTA(x0[1])))≥880_0_COUNT_FIELDACCESS(java.lang.Object(IntRTA(x1[1])), java.lang.Object(IntRTA(+(x0[1], 1))))∧(UIncreasing(880_0_COUNT_FIELDACCESS(java.lang.Object(IntRTA(x1[1])), java.lang.Object(IntRTA(+(x0[1], 1))))), ≥))
(8) ((UIncreasing(880_0_COUNT_FIELDACCESS(java.lang.Object(IntRTA(x1[1])), java.lang.Object(IntRTA(+(x0[1], 1))))), ≥)∧[1 + (-1)bso_13] ≥ 0)
(9) ((UIncreasing(880_0_COUNT_FIELDACCESS(java.lang.Object(IntRTA(x1[1])), java.lang.Object(IntRTA(+(x0[1], 1))))), ≥)∧[1 + (-1)bso_13] ≥ 0)
(10) ((UIncreasing(880_0_COUNT_FIELDACCESS(java.lang.Object(IntRTA(x1[1])), java.lang.Object(IntRTA(+(x0[1], 1))))), ≥)∧[1 + (-1)bso_13] ≥ 0)
(11) ((UIncreasing(880_0_COUNT_FIELDACCESS(java.lang.Object(IntRTA(x1[1])), java.lang.Object(IntRTA(+(x0[1], 1))))), ≥)∧0 = 0∧0 = 0∧[1 + (-1)bso_13] ≥ 0)
POL(TRUE) = 0
POL(FALSE) = 0
POL(880_0_COUNT_FIELDACCESS(x1, x2)) = [-1] + [-1]x2 + [2]x1
POL(java.lang.Object(x1)) = x1
POL(IntRTA(x1)) = x1
POL(COND_880_0_COUNT_FIELDACCESS(x1, x2, x3)) = [-1] + [-1]x3 + [2]x2
POL(&&(x1, x2)) = [-1]
POL(>(x1, x2)) = [-1]
POL(>=(x1, x2)) = [-1]
POL(0) = 0
POL(+(x1, x2)) = x1 + x2
POL(1) = [1]
COND_880_0_COUNT_FIELDACCESS(TRUE, java.lang.Object(IntRTA(x1[1])), java.lang.Object(IntRTA(x0[1]))) → 880_0_COUNT_FIELDACCESS(java.lang.Object(IntRTA(x1[1])), java.lang.Object(IntRTA(+(x0[1], 1))))
880_0_COUNT_FIELDACCESS(java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0]))) → COND_880_0_COUNT_FIELDACCESS(&&(>(x1[0], x0[0]), >=(x0[0], 0)), java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0])))
880_0_COUNT_FIELDACCESS(java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0]))) → COND_880_0_COUNT_FIELDACCESS(&&(>(x1[0], x0[0]), >=(x0[0], 0)), java.lang.Object(IntRTA(x1[0])), java.lang.Object(IntRTA(x0[0])))
!= | ~ | Neq: (Integer, Integer) -> Boolean |
* | ~ | Mul: (Integer, Integer) -> Integer |
>= | ~ | Ge: (Integer, Integer) -> Boolean |
-1 | ~ | UnaryMinus: (Integer) -> Integer |
| | ~ | Bwor: (Integer, Integer) -> Integer |
/ | ~ | Div: (Integer, Integer) -> Integer |
= | ~ | Eq: (Integer, Integer) -> Boolean |
~ | Bwxor: (Integer, Integer) -> Integer | |
|| | ~ | Lor: (Boolean, Boolean) -> Boolean |
! | ~ | Lnot: (Boolean) -> Boolean |
< | ~ | Lt: (Integer, Integer) -> Boolean |
- | ~ | Sub: (Integer, Integer) -> Integer |
<= | ~ | Le: (Integer, Integer) -> Boolean |
> | ~ | Gt: (Integer, Integer) -> Boolean |
~ | ~ | Bwnot: (Integer) -> Integer |
% | ~ | Mod: (Integer, Integer) -> Integer |
& | ~ | Bwand: (Integer, Integer) -> Integer |
+ | ~ | Add: (Integer, Integer) -> Integer |
&& | ~ | Land: (Boolean, Boolean) -> Boolean |
Boolean, Integer
!= | ~ | Neq: (Integer, Integer) -> Boolean |
* | ~ | Mul: (Integer, Integer) -> Integer |
>= | ~ | Ge: (Integer, Integer) -> Boolean |
-1 | ~ | UnaryMinus: (Integer) -> Integer |
| | ~ | Bwor: (Integer, Integer) -> Integer |
/ | ~ | Div: (Integer, Integer) -> Integer |
= | ~ | Eq: (Integer, Integer) -> Boolean |
~ | Bwxor: (Integer, Integer) -> Integer | |
|| | ~ | Lor: (Boolean, Boolean) -> Boolean |
! | ~ | Lnot: (Boolean) -> Boolean |
< | ~ | Lt: (Integer, Integer) -> Boolean |
- | ~ | Sub: (Integer, Integer) -> Integer |
<= | ~ | Le: (Integer, Integer) -> Boolean |
> | ~ | Gt: (Integer, Integer) -> Boolean |
~ | ~ | Bwnot: (Integer) -> Integer |
% | ~ | Mod: (Integer, Integer) -> Integer |
& | ~ | Bwand: (Integer, Integer) -> Integer |
+ | ~ | Add: (Integer, Integer) -> Integer |
&& | ~ | Land: (Boolean, Boolean) -> Boolean |
Integer